package w83b.w83bOperacionesPaso.w83bListados.w83bActas;

import java.util.ArrayList;
import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.commons.lang.StringUtils;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import w83b.w83bBeans.W83bListadosBean;

import es.ejie.frmk.presentacion.operacion.paso.Q70ActionPasoOP;
import es.ejie.frmk.presentacion.sesiondatos.Q70ContextoEJIE;

// TODO: Auto-generated Javadoc
/**
 * The Class W83bTablaConveniosOP.java.
 *
 * @author Deusto Sistemas
 */
public class W83bActResolDenegOPAction extends Q70ActionPasoOP{

	
	protected void processOP(Q70ContextoEJIE contexto, ActionErrors errores, ActionMapping mapping,
			ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
		
		String fResol = (String)request.getParameter("fechaResolucion");
		if(StringUtils.isNotEmpty(fResol)){
			List listaResolDenegatorias = (ArrayList)contexto.get("w83bResultadoListadosBean");
			for(int i=0;i<listaResolDenegatorias.size();i++){
				W83bListadosBean listado=(W83bListadosBean)listaResolDenegatorias.get(i);
				listado.setFechaResolucion(fResol);
			}
		}
		
	}

	protected ActionForward processForward(Q70ContextoEJIE contexto, ActionErrors errors, ActionMapping mapping, 
			ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
			
		return mapping.findForward("ok");
	}

}
